/* This file is part of SpaceSim.
 
 SpaceSim is free software: you can redistribute it and/or modify
 it under the terms of the GNU General Public License as published by
 the Free Software Foundation, either version 3 of the License, or
 (at your option) any later version.
 
 SpaceSim is distributed in the hope that it will be useful,
 but WITHOUT ANY WARRANTY; without even the implied warranty of
 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 GNU General Public License for more details.
 
 You should have received a copy of the GNU General Public License
 along with SpaceSim.  If not, see <http://www.gnu.org/licenses/>. */

#include "cluster.h"

#include <sstream>

template <class T>
inline std::string toString (const T& t) {
	std::stringstream str;
	str << t;
	return str.str();
}

void Cluster::DrawHubWarp() {
	sf::String InfoString("Cluster " + toString(ClusterID));
	InfoString.SetSize(15);
	InfoString.SetPosition(20, 10);
	Graphics::App.Draw(InfoString);	// draw info
	InfoString.SetText("Previous Cluster");
	InfoString.SetPosition(20, 40);
	Graphics::App.Draw(InfoString);	// draw info
	InfoString.SetText("Next Cluster");
	InfoString.SetPosition(20, 70);
	Graphics::App.Draw(InfoString);	// draw info
}